package com.forbiddendesert.actions;
import com.forbiddendesert.characters.Character;

public class TradeWater extends Action
{
	Character mRecipient;
	Character mDonor;
	int mAmount;
	
	public TradeWater(Character recipient, Character donor, int amount)
	{
		mRecipient = recipient;
		mDonor = donor;
		mAmount = amount;
		
		mTitle = "Trade Water";
	}

	@Override
	public int updateAction() 
	{
		mRecipient.refillCanteen(mAmount);
		mDonor.emptyCanteen(mAmount);
		return Action.COMPLETE;
	}

}
